/**
 * Copyright 2018 asiainfo Inc.
 **/
package com.myz.servicebus.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 我们只需要发送post请求：http://localhost:8300/actuator/bus-refresh
 *
 * @author maoyz on 2018/9/13
 * @version: v1.0
 */
@RestController
@RefreshScope
public class IndexController {

    @Value("${springname}")
    private String springName;

    @RequestMapping("/index")
    public String index() {
        return this.springName;
    }
}
